<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: ActiveScaffold::Config::Core</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">ActiveScaffold::Config::Core</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_bridge_rb.html">
                vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_bridge.rb
                </a>
        <br />
                <a href="../../../files/vendor/plugins/active_scaffold/lib/bridges/file_column/lib/as_file_column_bridge_rb.html">
                vendor/plugins/active_scaffold/lib/bridges/file_column/lib/as_file_column_bridge.rb
                </a>
        <br />
                <a href="../../../files/vendor/plugins/active_scaffold/lib/config/core_rb.html">
                vendor/plugins/active_scaffold/lib/config/core.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="Base.html">
                Base
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000144">_load_action_columns</a>&nbsp;&nbsp;
      <a href="#M000140">actions=</a>&nbsp;&nbsp;
      <a href="#M000134">actions=</a>&nbsp;&nbsp;
      <a href="#M000150">asset_path</a>&nbsp;&nbsp;
      <a href="#M000153">available_frontends</a>&nbsp;&nbsp;
      <a href="#M000141">columns=</a>&nbsp;&nbsp;
      <a href="#M000133">configure_file_column_field</a>&nbsp;&nbsp;
      <a href="#M000135">dhtml_history=</a>&nbsp;&nbsp;
      <a href="#M000136">dhtml_history?</a>&nbsp;&nbsp;
      <a href="#M000138">ignore_columns</a>&nbsp;&nbsp;
      <a href="#M000139">ignore_columns=</a>&nbsp;&nbsp;
      <a href="#M000149">inherited_view_paths</a>&nbsp;&nbsp;
      <a href="#M000131">initialize_with_calendar_date_select</a>&nbsp;&nbsp;
      <a href="#M000132">initialize_with_file_column</a>&nbsp;&nbsp;
      <a href="#M000151">javascripts</a>&nbsp;&nbsp;
      <a href="#M000142">label</a>&nbsp;&nbsp;
      <a href="#M000146">method_missing</a>&nbsp;&nbsp;
      <a href="#M000145">method_missing</a>&nbsp;&nbsp;
      <a href="#M000148">model</a>&nbsp;&nbsp;
      <a href="#M000147">model_id</a>&nbsp;&nbsp;
      <a href="#M000143">new</a>&nbsp;&nbsp;
      <a href="#M000137">security</a>&nbsp;&nbsp;
      <a href="#M000152">template_search_path</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->
    <div id="includes">
      <h3 class="section-bar">Included Modules</h3>

      <div id="includes-list">
        <span class="include-name"><a href="../DataStructures/ActionColumns/AfterConfiguration.html">ActiveScaffold::DataStructures::ActionColumns::AfterConfiguration</a></span>
      </div>
    </div>

    <div id="section">





    <div id="attribute-list">
      <h3 class="section-bar">Attributes</h3>

      <div class="name-list">
        <table>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">action_links</td>
          <td class="context-item-value">&nbsp;[R]&nbsp;</td>
          <td class="context-item-desc">
action links are used by actions to tie together. they appear as links for
each record, or general links for the <a
href="../../ActiveScaffold.html">ActiveScaffold</a>.

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">actions</td>
          <td class="context-item-value">&nbsp;[R]&nbsp;</td>
          <td class="context-item-desc">
provides read/write access to the local <a
href="../Actions.html">Actions</a> DataStructure

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">columns</td>
          <td class="context-item-value">&nbsp;[R]&nbsp;</td>
          <td class="context-item-desc">
provides read/write access to the local Columns DataStructure

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">file_column_fields</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc"></td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">frontend</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
lets you override the global <a
href="../../ActiveScaffold.html">ActiveScaffold</a> frontend for a specific
controller

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">label</td>
          <td class="context-item-value">&nbsp;[W]&nbsp;</td>
          <td class="context-item-desc">
a generally-applicable name for this <a
href="../../ActiveScaffold.html">ActiveScaffold</a> &#8230; will be used
for generating page/section headers

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">theme</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
lets you override the global <a
href="../../ActiveScaffold.html">ActiveScaffold</a> theme for a specific
controller

</td>
        </tr>
        </table>
      </div>
    </div>
      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000134" class="method-detail">
        <a name="M000134"></a>

        <div class="method-heading">
          <a href="#M000134" class="method-signature">
          <span class="method-name">actions=</span><span class="method-args">(val)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000134-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 8</span>
 8:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">actions=</span>(<span class="ruby-identifier">val</span>)
 9:       <span class="ruby-ivar">@@actions</span> = <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">DataStructures</span><span class="ruby-operator">::</span><span class="ruby-constant">Actions</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">val</span>)
10:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000150" class="method-detail">
        <a name="M000150"></a>

        <div class="method-heading">
          <a href="#M000150" class="method-signature">
          <span class="method-name">asset_path</span><span class="method-args">(filename, frontend = self.frontend)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
must be a class method so the layout doesn&#8216;t depend on a controller
that uses active_scaffold note that this is unaffected by per-controller
frontend configuration.
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000150-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 174</span>
174:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">asset_path</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-identifier">frontend</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">frontend</span>)
175:       <span class="ruby-node">&quot;active_scaffold/#{frontend}/#{filename}&quot;</span>
176:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000153" class="method-detail">
        <a name="M000153"></a>

        <div class="method-heading">
          <a href="#M000153" class="method-signature">
          <span class="method-name">available_frontends</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000153-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 198</span>
198:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">available_frontends</span>
199:       <span class="ruby-identifier">frontends_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">RAILS_ROOT</span>, <span class="ruby-value str">&quot;vendor&quot;</span>, <span class="ruby-value str">&quot;plugins&quot;</span>, <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span>.<span class="ruby-identifier">plugin_directory</span>, <span class="ruby-value str">&quot;frontends&quot;</span>)
200:       <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">entries</span>(<span class="ruby-identifier">frontends_dir</span>).<span class="ruby-identifier">reject</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/^\./</span>) } <span class="ruby-comment cmt"># Get rid of files that start with .</span>
201:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000135" class="method-detail">
        <a name="M000135"></a>

        <div class="method-heading">
          <a href="#M000135" class="method-signature">
          <span class="method-name">dhtml_history=</span><span class="method-args">(val)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
lets you disable the DHTML history
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000135-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 26</span>
26:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dhtml_history=</span>(<span class="ruby-identifier">val</span>)
27:       <span class="ruby-ivar">@@dhtml_history</span> = <span class="ruby-identifier">val</span>
28:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000136" class="method-detail">
        <a name="M000136"></a>

        <div class="method-heading">
          <a href="#M000136" class="method-signature">
          <span class="method-name">dhtml_history?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000136-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 29</span>
29:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dhtml_history?</span>
30:       <span class="ruby-ivar">@@dhtml_history</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">false</span>
31:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000138" class="method-detail">
        <a name="M000138"></a>

        <div class="method-heading">
          <a href="#M000138" class="method-signature">
          <span class="method-name">ignore_columns</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
columns that should be ignored for every <a
href="Core.html#M000148">model</a>. these should be metadata columns like
change dates, versions, etc. values in this array may be symbols or
strings.
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000138-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 48</span>
48:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ignore_columns</span>
49:       <span class="ruby-ivar">@@ignore_columns</span>
50:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000139" class="method-detail">
        <a name="M000139"></a>

        <div class="method-heading">
          <a href="#M000139" class="method-signature">
          <span class="method-name">ignore_columns=</span><span class="method-args">(val)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000139-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 51</span>
51:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ignore_columns=</span>(<span class="ruby-identifier">val</span>)
52:       <span class="ruby-ivar">@@ignore_columns</span> = <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">DataStructures</span><span class="ruby-operator">::</span><span class="ruby-constant">Set</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">val</span>)
53:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000151" class="method-detail">
        <a name="M000151"></a>

        <div class="method-heading">
          <a href="#M000151" class="method-signature">
          <span class="method-name">javascripts</span><span class="method-args">(frontend = self.frontend)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
must be a class method so the layout doesn&#8216;t depend on a controller
that uses active_scaffold note that this is unaffected by per-controller
frontend configuration.
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000151-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 180</span>
180:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">javascripts</span>(<span class="ruby-identifier">frontend</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">frontend</span>)
181:       <span class="ruby-identifier">javascript_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">RAILS_ROOT</span>, <span class="ruby-value str">&quot;public&quot;</span>, <span class="ruby-value str">&quot;javascripts&quot;</span>, <span class="ruby-identifier">asset_path</span>(<span class="ruby-value str">''</span>, <span class="ruby-identifier">frontend</span>))
182:       <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">entries</span>(<span class="ruby-identifier">javascript_dir</span>).<span class="ruby-identifier">reject</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span><span class="ruby-identifier">e</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/\.js/</span>) <span class="ruby-keyword kw">or</span> (<span class="ruby-operator">!</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dhtml_history?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">match</span>(<span class="ruby-value str">'dhtml_history'</span>)) }
183:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000146" class="method-detail">
        <a name="M000146"></a>

        <div class="method-heading">
          <a href="#M000146" class="method-signature">
          <span class="method-name">method_missing</span><span class="method-args">(name, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000146-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 149</span>
149:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
150:       <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@actions</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">underscore</span> <span class="ruby-keyword kw">and</span> <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">const_defined?</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">titleize</span>
151:         <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">eval</span>(<span class="ruby-node">&quot;ActiveScaffold::Config::#{name.to_s.titleize}&quot;</span>)
152:       <span class="ruby-keyword kw">end</span>
153:       <span class="ruby-keyword kw">super</span>
154:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000143" class="method-detail">
        <a name="M000143"></a>

        <div class="method-heading">
          <a href="#M000143" class="method-signature">
          <span class="method-name">new</span><span class="method-args">(model_id)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
internal usage only below this point
</p>
<hr size="10"></hr>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000143-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 92</span>
 92:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">model_id</span>)
 93:       <span class="ruby-comment cmt"># model_id is the only absolutely required configuration value. it is also not publicly accessible.</span>
 94:       <span class="ruby-ivar">@model_id</span> = <span class="ruby-identifier">model_id</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">pluralize</span>.<span class="ruby-identifier">singularize</span>
 95: 
 96:       <span class="ruby-comment cmt"># inherit the actions list directly from the global level</span>
 97:       <span class="ruby-ivar">@actions</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">actions</span>.<span class="ruby-identifier">clone</span>
 98: 
 99:       <span class="ruby-comment cmt"># create a new default columns datastructure, since it doesn't make sense before now</span>
100:       <span class="ruby-identifier">attribute_names</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">columns</span>.<span class="ruby-identifier">collect</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span> }.<span class="ruby-identifier">sort_by</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span> }
101:       <span class="ruby-identifier">association_column_names</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">reflect_on_all_associations</span>.<span class="ruby-identifier">collect</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span> }.<span class="ruby-identifier">sort_by</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span> }
102:       <span class="ruby-ivar">@columns</span> = <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">DataStructures</span><span class="ruby-operator">::</span><span class="ruby-constant">Columns</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>, <span class="ruby-identifier">attribute_names</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">association_column_names</span>)
103: 
104:       <span class="ruby-comment cmt"># and then, let's remove some columns from the inheritable set.</span>
105:       <span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-operator">*</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">ignore_columns</span>)
106:       <span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-operator">*</span><span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">find_all</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">column</span> <span class="ruby-keyword kw">and</span> (<span class="ruby-identifier">c</span>.<span class="ruby-identifier">column</span>.<span class="ruby-identifier">primary</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">column</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(_id|_count)$/</span>) }.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">name</span>})
107:       <span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-operator">*</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">reflect_on_all_associations</span>.<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-node">&quot;#{a.name}_type&quot;</span><span class="ruby-node">&quot;#{a.name}_type&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:polymorphic</span>]}.<span class="ruby-identifier">compact</span>)
108: 
109:       <span class="ruby-comment cmt"># inherit the global frontend</span>
110:       <span class="ruby-ivar">@frontend</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">frontend</span>
111:       <span class="ruby-ivar">@theme</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">theme</span>
112: 
113:       <span class="ruby-comment cmt"># inherit from the global set of action links</span>
114:       <span class="ruby-ivar">@action_links</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">action_links</span>.<span class="ruby-identifier">clone</span>
115: 
116:       <span class="ruby-comment cmt"># the default label</span>
117:       <span class="ruby-ivar">@label</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model_id</span>.<span class="ruby-identifier">pluralize</span>.<span class="ruby-identifier">titleize</span>
118:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000137" class="method-detail">
        <a name="M000137"></a>

        <div class="method-heading">
          <a href="#M000137" class="method-signature">
          <span class="method-name">security</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
access to the permissions configuration. configuration options include:
</p>
<pre>
 * current_user_method - what method on the controller returns the current user. default: :current_user
 * default_permission - what the default permission is. default: true
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000137-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 42</span>
42:     <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">security</span>
43:       <span class="ruby-constant">ActiveRecordPermissions</span>
44:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000144" class="method-detail">
        <a name="M000144"></a>

        <div class="method-heading">
          <a href="#M000144" class="method-signature">
          <span class="method-name">_load_action_columns</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
To be called after your finished configuration
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000144-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 121</span>
121:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_load_action_columns</span>
122:       <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">DataStructures</span><span class="ruby-operator">::</span><span class="ruby-constant">ActionColumns</span>.<span class="ruby-identifier">class_eval</span> {<span class="ruby-identifier">include</span> <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">DataStructures</span><span class="ruby-operator">::</span><span class="ruby-constant">ActionColumns</span><span class="ruby-operator">::</span><span class="ruby-constant">AfterConfiguration</span>}
123: 
124:       <span class="ruby-comment cmt"># then, register the column objects</span>
125:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">actions</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">action_name</span><span class="ruby-operator">|</span>
126:         <span class="ruby-identifier">action</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">action_name</span>)
127:         <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">action</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:columns</span>
128:         <span class="ruby-identifier">action</span>.<span class="ruby-identifier">columns</span>.<span class="ruby-identifier">set_columns</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">columns</span>)
129:       <span class="ruby-keyword kw">end</span>
130:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000140" class="method-detail">
        <a name="M000140"></a>

        <div class="method-heading">
          <a href="#M000140" class="method-signature">
          <span class="method-name">actions=</span><span class="method-args">(args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000140-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 61</span>
61:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">actions=</span>(<span class="ruby-identifier">args</span>)
62:       <span class="ruby-ivar">@actions</span> = <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">DataStructures</span><span class="ruby-operator">::</span><span class="ruby-constant">Actions</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
63:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000141" class="method-detail">
        <a name="M000141"></a>

        <div class="method-heading">
          <a href="#M000141" class="method-signature">
          <span class="method-name">columns=</span><span class="method-args">(val)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000141-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 67</span>
67:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">columns=</span>(<span class="ruby-identifier">val</span>)
68:       <span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">_inheritable</span> = <span class="ruby-identifier">val</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_sym</span>}
69:       <span class="ruby-comment cmt"># Add virtual columns</span>
70:       <span class="ruby-ivar">@columns</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@columns</span>[<span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_sym</span>]}.<span class="ruby-identifier">compact</span>
71:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000133" class="method-detail">
        <a name="M000133"></a>

        <div class="method-heading">
          <a href="#M000133" class="method-signature">
          <span class="method-name">configure_file_column_field</span><span class="method-args">(field)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000133-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/bridges/file_column/lib/as_file_column_bridge.rb, line 31</span>
31:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure_file_column_field</span>(<span class="ruby-identifier">field</span>)
32:       <span class="ruby-comment cmt"># set list_ui first because it gets its default value from form_ui</span>
33:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">columns</span>[<span class="ruby-identifier">field</span>].<span class="ruby-identifier">list_ui</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">field_has_image_version?</span>(<span class="ruby-identifier">field</span>, <span class="ruby-value str">&quot;thumb&quot;</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">:thumbnail</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">:download_link_with_filename</span>
34:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">columns</span>[<span class="ruby-identifier">field</span>].<span class="ruby-identifier">form_ui</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">:file_column</span>
35:       
36:       <span class="ruby-comment cmt"># these 2 parameters are necessary helper attributes for the file column that must be allowed to be set to the model by active scaffold.</span>
37:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">columns</span>[<span class="ruby-identifier">field</span>].<span class="ruby-identifier">params</span>.<span class="ruby-identifier">add</span> <span class="ruby-node">&quot;#{field}_temp&quot;</span>, <span class="ruby-node">&quot;delete_#{field}&quot;</span>
38:       
39:       <span class="ruby-comment cmt"># set null to false so active_scaffold wont set it to null</span>
40:       <span class="ruby-comment cmt"># delete_file_column will take care of deleting a file or not.</span>
41:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">columns_hash</span>[<span class="ruby-identifier">field</span>.<span class="ruby-identifier">to_s</span>].<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-value str">&quot;@null&quot;</span>, <span class="ruby-keyword kw">false</span>)
42:       
43:     <span class="ruby-keyword kw">rescue</span>
44:       <span class="ruby-keyword kw">false</span>
45:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000149" class="method-detail">
        <a name="M000149"></a>

        <div class="method-heading">
          <a href="#M000149" class="method-signature">
          <span class="method-name">inherited_view_paths</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
warning - this won&#8216;t work as a per-request dynamic attribute in rails
2.0. You&#8216;ll need to interact with Controller#generic_view_paths
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000149-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 168</span>
168:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inherited_view_paths</span>
169:       <span class="ruby-ivar">@inherited_view_paths</span><span class="ruby-operator">||=</span>[]
170:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000131" class="method-detail">
        <a name="M000131"></a>

        <div class="method-heading">
          <a href="#M000131" class="method-signature">
          <span class="method-name">initialize_with_calendar_date_select</span><span class="method-args">(model_id)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000131-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_bridge.rb, line 4</span>
 4:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_with_calendar_date_select</span>(<span class="ruby-identifier">model_id</span>)
 5:       <span class="ruby-identifier">initialize_without_calendar_date_select</span>(<span class="ruby-identifier">model_id</span>)
 6:       
 7:       <span class="ruby-identifier">calendar_date_select_fields</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">columns</span>.<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-keyword kw">if</span> [<span class="ruby-identifier">:date</span>, <span class="ruby-identifier">:datetime</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">type</span>) }.<span class="ruby-identifier">compact</span>
 8:       <span class="ruby-comment cmt"># check to see if file column was used on the model</span>
 9:       <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">calendar_date_select_fields</span>.<span class="ruby-identifier">empty?</span>
10:       
11:       <span class="ruby-comment cmt"># automatically set the forum_ui to a file column</span>
12:       <span class="ruby-identifier">calendar_date_select_fields</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">field</span><span class="ruby-operator">|</span>
13:         <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">columns</span>[<span class="ruby-identifier">field</span>].<span class="ruby-identifier">form_ui</span> = <span class="ruby-identifier">:calendar_date_select</span>
14:       }
15:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000132" class="method-detail">
        <a name="M000132"></a>

        <div class="method-heading">
          <a href="#M000132" class="method-signature">
          <span class="method-name">initialize_with_file_column</span><span class="method-args">(model_id)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000132-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/bridges/file_column/lib/as_file_column_bridge.rb, line 10</span>
10:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize_with_file_column</span>(<span class="ruby-identifier">model_id</span>)
11:       <span class="ruby-identifier">initialize_without_file_column</span>(<span class="ruby-identifier">model_id</span>)
12:       
13:       <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">FileColumnHelpers</span>.<span class="ruby-identifier">klass_has_file_column_fields?</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>)
14:       
15:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:extend</span>, <span class="ruby-constant">FileColumnHelpers</span>
16:       
17:       <span class="ruby-comment cmt"># include the &quot;delete&quot; helpers for use with active scaffold, unless they are already included</span>
18:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">generate_delete_helpers</span>
19:       
20:       <span class="ruby-comment cmt"># switch on multipart</span>
21:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">update</span>.<span class="ruby-identifier">multipart</span> = <span class="ruby-keyword kw">true</span>
22:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create</span>.<span class="ruby-identifier">multipart</span> = <span class="ruby-keyword kw">true</span>
23:       
24:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">file_column_fields</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">field</span><span class="ruby-operator">|</span>
25:         <span class="ruby-identifier">configure_file_column_field</span>(<span class="ruby-identifier">field</span>)
26:       }
27:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000142" class="method-detail">
        <a name="M000142"></a>

        <div class="method-heading">
          <a href="#M000142" class="method-signature">
          <span class="method-name">label</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000142-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 84</span>
84:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">label</span>
85:       <span class="ruby-identifier">as_</span>(<span class="ruby-ivar">@label</span>)
86:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000145" class="method-detail">
        <a name="M000145"></a>

        <div class="method-heading">
          <a href="#M000145" class="method-signature">
          <span class="method-name">method_missing</span><span class="method-args">(name, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
configuration routing. we want to route calls named like an activated
action to that action&#8216;s global or local <a
href="../Config.html">Config</a> class.
</p>
<hr size="10"></hr>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000145-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 135</span>
135:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
136:       <span class="ruby-ivar">@action_configs</span> <span class="ruby-operator">||=</span> {}
137:       <span class="ruby-identifier">titled_name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">camelcase</span>
138:       <span class="ruby-identifier">underscored_name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">underscore</span>.<span class="ruby-identifier">to_sym</span>
139:       <span class="ruby-keyword kw">if</span> <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">const_defined?</span> <span class="ruby-identifier">titled_name</span>
140:         <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@actions</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">underscored_name</span>
141:           <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@action_configs</span>[<span class="ruby-identifier">underscored_name</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">eval</span>(<span class="ruby-node">&quot;ActiveScaffold::Config::#{titled_name}&quot;</span>).<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
142:         <span class="ruby-keyword kw">else</span>
143:           <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;#{titled_name} is not enabled. Please enable it or remove any references in your configuration (e.g. config.#{underscored_name}.columns = [...]).&quot;</span>
144:         <span class="ruby-keyword kw">end</span>
145:       <span class="ruby-keyword kw">end</span>
146:       <span class="ruby-keyword kw">super</span>
147:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000148" class="method-detail">
        <a name="M000148"></a>

        <div class="method-heading">
          <a href="#M000148" class="method-signature">
          <span class="method-name">model</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000148-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 163</span>
163:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">model</span>
164:       <span class="ruby-ivar">@model</span> <span class="ruby-operator">||=</span> <span class="ruby-ivar">@model_id</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">camelize</span>.<span class="ruby-identifier">constantize</span>
165:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000147" class="method-detail">
        <a name="M000147"></a>

        <div class="method-heading">
          <a href="#M000147" class="method-signature">
          <span class="method-name">model_id</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
some utility methods
</p>
<hr size="10"></hr>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000147-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 159</span>
159:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">model_id</span>
160:       <span class="ruby-ivar">@model_id</span>
161:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000152" class="method-detail">
        <a name="M000152"></a>

        <div class="method-heading">
          <a href="#M000152" class="method-signature">
          <span class="method-name">template_search_path</span><span class="method-args">(frontend = self.frontend)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
the <a href="../../ActiveScaffold.html">ActiveScaffold</a>-specific
template paths an instance method. this is the only place that pays
attention to per-controller frontend configuration. note: for the rails
1.2.x rendering, this needs to be relative to app/views.
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000152-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/config/core.rb, line 188</span>
188:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">template_search_path</span>(<span class="ruby-identifier">frontend</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">frontend</span>)
189:       <span class="ruby-identifier">frontends_path</span> = <span class="ruby-node">&quot;../../vendor/plugins/#{ActiveScaffold::Config::Core.plugin_directory}/frontends&quot;</span>
190: 
191:       <span class="ruby-identifier">search_path</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inherited_view_paths</span>.<span class="ruby-identifier">clone</span>
192:       <span class="ruby-identifier">search_path</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'active_scaffold_overrides'</span>
193:       <span class="ruby-identifier">search_path</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{frontends_path}/#{frontend}/views&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">frontend</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">:default</span>
194:       <span class="ruby-identifier">search_path</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{frontends_path}/default/views&quot;</span>
195:       <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">search_path</span>
196:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>